package server;

import java.rmi.RemoteException;

import client.Trader;

public class WatchedItem {

	private String itemName;
	private float maxprice;
	private String traderName;
	private int id;
	public WatchedItem(String traderName,String itemName, float maxprice)
	{
		this.traderName = traderName;
		this.itemName = itemName;
		this.maxprice = maxprice;
		
	}
	
	public WatchedItem(int id,String traderName,String itemName, float maxprice)
	{
		this(traderName,itemName,maxprice);
		this.id = id;
	}
	
	public int getId()
	{
		return id;
	}

	public String getTraderName() throws RemoteException {
		return traderName;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public float getMaxprice() {
		return maxprice;
	}
	public void setMaxprice(float maxprice) {
		this.maxprice = maxprice;
	}
	
}
